
/**
 * AppleIIGo
 * W65C02S class
 * (C) 2007 by Marc S. Ressl (mressl@umich.edu)
 * Released under the GPL
 */

#include "CPU.h"

#ifndef W65C02S_H
#define W65C02S_H

class W65C02S : public CPU {
public:
	W65C02S(class Motherboard * motherboard);
	
	void onDevicesConnected();

	void executeInstructions();
	
private:
	class IOU * iou;

	UINT8 A, X, Y, S, P;
	UINT16 PC;

	UINT32 fastCondC;
	UINT32 fastCondNZ;
	
	UINT32 cycleExcess;
	
	#include "6502.h"
};

#endif
